package newx.com.control.table
{
	import newx.com.control.Scroll.NxScrollSkin;

	/**
	 * 表格皮肤 
	 * @author wangjun
	 * 
	 */	
	public class NxTableSkin
	{
		private var _titleSkin		:String;
		
		private var _lineSkins		:Vector.<String>;
		
		private var _scrollSkin	:NxScrollSkin;
		
		public function NxTableSkin(titleSkinVal:String,lineItemSkinVal:Array,scrollSkin:NxScrollSkin)
		{
			_titleSkin	=	null;
			_lineSkins	=	new Vector.<String>();
			_scrollSkin	=	scrollSkin
			
			if(titleSkinVal.length>0)
			{
				_titleSkin	=	titleSkinVal;
			}
			
			
			if(lineItemSkinVal != null)
			{
				var tSize	:int = lineItemSkinVal.length;
				
				for(var i:int = 0 ; i < tSize ; i ++)
				{
					_lineSkins.push(String(lineItemSkinVal[i]));
				}
			}
		}

		/**标题单元格皮肤*/
		public function get titleSkin():String
		{
			return _titleSkin;
		}

		/**
		 * @private
		 */
		public function set titleSkin(value:String):void
		{
			_titleSkin = value;
		}

		/**行单元格皮肤，支持隔行皮肤*/
		public function get lineSkins():Vector.<String>
		{
			return _lineSkins;
		}

		/**
		 * @private
		 */
		public function set lineSkins(value:Vector.<String>):void
		{
			_lineSkins = value;
		}

		/**滚动条控件皮肤*/
		public function get scrollSkin():NxScrollSkin
		{
			return _scrollSkin;
		}

		/**
		 * @private
		 */
		public function set scrollSkin(value:NxScrollSkin):void
		{
			_scrollSkin = value;
		}


	}
}